package cn.edu.scau.dormitory_management_system.module.assign_dormitory.service;

import cn.edu.scau.dormitory_management_system.entity.StudentEntity;

import java.util.List;

public interface AssignDormitory {
    /**
     * 分配单个学生宿舍
     * @return
     */
    boolean assignDormitory_Singleton(String studentId, int dormId);

    /**
     * 批量分配学生宿舍
     * @param studentEntity
     * @return
     */
    boolean assignDormitory_Batch(StudentEntity studentEntity);

    /**
     * 调宿--自己选择
     * @param studentId
     * @param dormId
     * @return
     */
    boolean updateDormitory(String studentId, int dormId);

    /**
     * 退宿
     * @param studentId
     * @param dormId
     * @return
     */
    boolean retreatDormitory(String studentId,int dormId);

    void insertList(List<StudentEntity> list);
}
